#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include<QtSerialPort/QSerialPort>
#include<QtSerialPort/QSerialPortInfo>
#include"qdebug.h"
#include"location.h"
#include"QTimer"

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    Location location;
    QTimer *timer;
    explicit Widget(QWidget *parent = 0);
    QSerialPort *my_serialport;
    ~Widget();

private slots:
    void on_pushButton_start_clicked();
    void my_readuart();
    void do_emit();

private:
    Ui::Widget *ui;

};

#endif // WIDGET_H
